import 'package:flutter/material.dart';

///关于信息
class AboutPage extends StatefulWidget{
  @override
  _aboutState createState() =>_aboutState();

}

class _aboutState extends State<AboutPage>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('关于信息'),
      ),
      body: Container(
        child: ListView(
          children: <Widget>[
            _listTitle(title: '操作说明',iconData: Icons.tab),
            _listTitle(title:'检查版本',iconData: Icons.verified_user),
            _listTitle(title: '我要分享',iconData: Icons.share),
          ],
        ),
      ),
    );
  }

  Widget _listTitle({String title,IconData iconData,GestureTapCallback callback}){
    return  Container(
      decoration: BoxDecoration(
          border: Border(
              bottom: BorderSide(
                  color: Colors.black12,
                  width: 0.5
              )
          )
      ),
      child: ListTile(
        title: Text(title),
        leading:Icon(iconData,color: Colors.blue,),
        onTap: callback,
      ),
    );
  }

}